package yl.hs.bmipfull.pojo.system;

import yl.hs.bmipfull.annotations.DBField;
import yl.hs.bmipfull.annotations.DBTable;
import yl.hs.bmipfull.pojo.BaseEntity;

/**
 * @author 谢景广
 * @apiNote GlobalSearchItemEntity
 * @date 2021-06-28
 */
@DBTable(disName = "全局搜索设置项", mapCode = "global_search_item")
public class GlobalSearchItemEntity extends BaseEntity {


    private Long id;
    @DBField(disName = "搜索设置项编号", mapCode = "sn", isSerialNumber = true, isRequire = true, snPrefix = "GSDI")
    private String sn;
    private String dataType;
    private String dataCode;
    private String viewModel;
    private int searchCount;
    private int state;
    private String userSN;

    /**
     * 获取主键
     *
     * @return 主键
     */
    public Long getId() {
        return this.id;
    }

    /**
     * 设置主键
     *
     * @param id 主键
     */
    public void setId(Long id) {
        this.id = id;
    }

    public String getSn() {
        return this.sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    /**
     * 获取数据类型
     *
     * @return 数据类型
     */
    public String getDataType() {
        return this.dataType;
    }

    /**
     * 设置数据类型
     *
     * @param dataType 数据类型
     */
    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    /**
     * 获取数据代码
     *
     * @return 数据代码
     */
    public String getDataCode() {
        return this.dataCode;
    }

    /**
     * 设置数据代码
     *
     * @param dataCode 数据代码
     */
    public void setDataCode(String dataCode) {
        this.dataCode = dataCode;
    }

    /**
     * 获取展示组件名称
     *
     * @return 展示组件名称
     */
    public String getViewModel() {
        return this.viewModel;
    }

    /**
     * 设置展示组件名称
     *
     * @param viewModel 展示组件名称
     */
    public void setViewModel(String viewModel) {
        this.viewModel = viewModel;
    }

    /**
     * 获取搜索次数
     *
     * @return 搜索次数
     */
    public int getSearchCount() {
        return this.searchCount;
    }

    /**
     * 设置搜索次数
     *
     * @param searchCount 搜索次数
     */
    public void setSearchCount(int searchCount) {
        this.searchCount = searchCount;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getUserSN() {
        return userSN;
    }

    public void setUserSN(String userSN) {
        this.userSN = userSN;
    }
}
